/*
 *
 *
 *
 *
 */

package com.usefullc.user.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.usefullc.system.entity.BaseEntity;
import com.usefullc.system.validator.UsefulPropertyVerify;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@JsonIgnoreProperties(value = {"authResList","delState"})
@TableName("u_role")
@ApiModel("角色")
@Data
public class Role extends BaseEntity {

    @ApiModelProperty(notes = "租户ID")
    private Long tenantId;

    @UsefulPropertyVerify(required = true,minLen = 2,maxLen = 20)
    @ApiModelProperty(notes = "名称")
    private String name;

    @UsefulPropertyVerify(minLen = 2,maxLen = 200)
    @ApiModelProperty(notes = "描述")
    private java.lang.String description;

    @UsefulPropertyVerify()
    @ApiModelProperty(notes = "是否普通用户角色")
    private Integer normal;


//    @ApiModelProperty(notes = "资源列表")
//    @TableField(exist = false)
//    private List<AuthRes> authResList;

    public Role(){
    }

}
